package com.yanqu.backendweb.controller;

import com.yanqu.backendweb.bean.RoleInfo;
import com.yanqu.backendweb.bean.RoleInfosDto;
import com.yanqu.backendweb.utils.Response;
import com.yanqu.backendweb.vo.RoleInfoVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

/**
 * @author duli
 * @version 1.0
 * @date 2020/9/15 17:15
 * @Description
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/get")
    @ResponseBody
    public Response get(String requestId, String sign, @RequestBody @Valid RoleInfoVo vo){

        RoleInfosDto roleInfosDto=new RoleInfosDto();
        RoleInfo roleInfo=new RoleInfo();
        /*roleInfo.setServer_id("1");
        roleInfo.setRole_id("dyli");
        List<RoleInfo> roleInfoList=new ArrayList<>();
        roleInfoList.add(roleInfo);
        roleInfosDto.setList(roleInfoList);*/
        return Response.success(roleInfosDto);
    }
}
